/* eslint-disable @typescript-eslint/no-explicit-any */
import React from 'react';
import 'antd-mobile/es/global';
import '@/styles/index.less';
// 这里需要用pont桥生成services文件
import './services/index';

export function onRouteChange(props: { matchedRoutes: any }) {
  const { matchedRoutes } = props;
  if (matchedRoutes.length) {
    // 可以放埋点代码
  }
}

/**
 * react-dom 渲染时的根组件
 */
export function rootContainer(container: any) {
  const App = () => <>{container}</>;
  return React.createElement(App, null, container);
}
